package org.hive.vmware.model;

public class VmBee {

	private String name;
	private String host;
	private String dataCenter;
	private String centerServer;
	private VmGroupBee vmGroup;
	
	public void setName(String name) {
		this.name = name;
	}
	public String getName() {
		return name;
	}
	public void setHost(String host) {
		this.host = host;
	}
	public String getHost() {
		return host;
	}
	public void setCenterServer(String centerServer) {
		this.centerServer = centerServer;
	}
	public String getCenterServer() {
		return centerServer;
	}
	
	public String getDescription() {
		return getHost() + "/" + getName();
	}
	
	public void setDataCenter(String dataCenter) {
		this.dataCenter = dataCenter;
	}
	public String getDataCenter() {
		return dataCenter;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (obj instanceof VmBee) {
			VmBee otherVmBee = (VmBee)obj;
			return this.name.equals(otherVmBee.getName())
			&& this.host.equals(otherVmBee.getHost());
		} else {
			return false;
		}
	}
	public void setVmGroup(VmGroupBee vmGroup) {
		this.vmGroup = vmGroup;
	}
	public VmGroupBee getVmGroup() {
		return vmGroup;
	}
}
